<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>前五跳转_选项模型</title>
</head>
<body>


    <h1>  前五跳转_选项模型  </h1>

    {% if all_choices_list %}
    <ul>
    {% for choices in all_choices_list %}
        <li>
            <h4>  choices.question : {{ choices.question }}  </h4>
            <h4>  choices.choice_text : {{ choices.choice_text }}  </h4>
            <h4>  choices.votes : {{ choices.votes }}  </h4>

        </li>
    {% endfor %}
    </ul>
    {% else %}
        <p>没有对应的选择模型  choices.</p>
    {% endif %}



<p>

    question = models.ForeignKey(Question, on_delete=models.CASCADE)  # 与Question模型相关联的外键
    choice_text = models.CharField(max_length=200)  # 选项的文本内容
    votes = models.IntegerField(default=0)  # 这个选项的票数


</p>

</body>
</html>